<div >
    <form class="form-horizontal" role="form" novalidate name="stForm" ng-switch on="translate.timeTypeCode.timeTypeCode">
        <div class="form-ctrl md-whiteframe-z1">
            <div class="form-search" style="height:200px;" ng-class="{true: 'shou'}[shoumun==0]" >
                <div>
                    <label style="width:70px">数据类型</label>
                    <md-select multiple ng-model="consistency.dateType" >
                        <md-select-label>
                            {{consistency.dateType.length ? _getNames(consistency.dateType,'dateTypeName',dateTypes) :'全部'}}
                        </md-select-label>
                        <md-option ng-value="" ng-click="_checkAll(consistency,'dateType')">全部</md-option>
                        <md-option ng-value="datetype" ng-repeat="datetype in dateTypes">{{datetype.dateTypeName}}</md-option>
                    </md-select>
                </div>

                <div>
                    <label style="width:70px">对端域</label>
                    <md-select multiple ng-model="consistency.endRegion" >
                        <md-select-label>
                            {{consistency.endRegion.length ? _getNames(consistency.endRegion,'endRegionName',dateTypes) :'全部'}}
                        </md-select-label>
                        <md-option ng-value="" ng-click="_checkAll(consistency,'endRegionCode')">全部</md-option>
                        <md-option ng-value="endRegion" ng-repeat="endRegion in endRegions">{{endRegion.endRegionName}}</md-option>
                    </md-select>
                </div>

                <div>
                   <label style="" >对端机构</label>
                     <md-select  ng-model="consistency.endAgency" >
                     <md-option ng-value="endAgeency.endAgencyCode"     ng-repeat="endAgeency in endAgencys">{{endAgeency.endAgeencyName}}
                     </md-option>
                   </md-select>
                </div>
                 <div>
                   <label style="">增量/全量</label>
                     <md-select  ng-model="consistency.viweType" >
                     <md-option ng-value="viweType.viweTypeCode"     ng-repeat="viweType in viweTypes">{{viweType.viweTypeName}}
                     </md-option>
                   </md-select>
                </div>
                <div>
                    <md-input-container flex>
                        <label >开始时间</label>
                        <input  type="date"  time-validate='day' end-time='consistency.endTime' name='startTime'  ng-model="consistency.startTime"   required>
                        <div ng-messages="stForm.startTime.$error">
                            <div ng-message="date">请正确输入时间</div>
                            <div ng-message="time-error">开始时间不应大于结束时间</div>
                            <div ng-message="too-great">结束时间不应大于当前时间</div>
                        </div>
                    </md-input-container >
                </div>
                <div>
                    <md-input-container flex>
                        <label >结束时间</label>
                        <input  type="date" time-validate="day" start-time="consistency.startTime" name='endTime'   ng-model="consistency.endTime"   required>
                        <div ng-messages="stForm.endTime.$error">
                            <div ng-message="date">请正确输入时间</div>
                            <div ng-message="time-error">开始时间不应大于结束时间</div>
                            <div ng-message="too-great">结束时间不应大于当前时间</div>
                        </div>
                    </md-input-container >
                </div>

           </div>
           <i class="glyphicon glyphicon-chevron-up shrinkage" ng-click="shoumun=0"></i>
            <md-button ng-click="queryAllChannel()" ng-click="shoumun==1?shoumun=0:shoumun=1" class="md-fab md-primary md-hue-1" ng-disabled ='stForm.$invalid' aria-label="Profile">
                <i class="glyphicon glyphicon-arrow-down" style="margin-top:28px;" ng-show="shoumun==0"></i>
                <i class="glyphicon glyphicon-search" ng-show="shoumun==1"></i>
            </md-button>
        </div>
    </form>
      <div class="table-info">
      <form action="{{excelExport}}"  target="_black"  method="post" style="padding:10px 12px;">
        <input type='hidden' name="data"  value='{{ExportList}}'>
        <md-button  type="submit"  class="md-raised">导出Excel</md-button>
       </form>
      </div>
    <div style="text-align: center" >
       <h3  style="margin-top:0;font-size:large;font-weight:bold;color:black">
         数据一致性差异统计{{consistency.startTime | date : 'yyyy-MM-dd'}} 至  {{consistency.endTime | date : 'yyyy-MM-dd'}}
      </h3>
      </div>
    <div class="table-info"   >
        <div>
            <div class="table-detail">
                <div class="t_r">
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th width="10%">对端域</th>
                            <th width="10%" >对端机构</th>
                            <th width="10%" >冲突行数</th>
                            <th width="10%" >总行数</th>
                            <th width="10%" >准确率</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="item in items.data">
                            <td width="10%"  >{{item.endonRegion}}</td>
                            <td width="10%"  >{{item.endonInstitution}}</td>
                            <td width="10%"  >{{item.conflictCount}}</td>
                            <td width="10%" >{{item.totalrowsCount}}</td>
                            <td width="10%" >{{item.accuracyRate}}%</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div id="pboss" style='height:550px;padding-bottom:20px'></div>
    </div>
</div>
